import Layout from '@/page/index/'

export default [{
  path: '/wel',
  component: Layout,
  redirect: '/wel/index',
  children: [{
    path: 'index',
    name: '首页',
    meta: {
      i18n: 'dashboard',
      keepAlive: true,
    },
    component: () =>
      import( /* webpackChunkName: "views" */ '@/views/wel/index')
  },
    {
    path: 'dashboard',
    name: '控制台',
    meta: {
      i18n: 'dashboard',
      menu: false,
    },
    component: () =>
      import( /* webpackChunkName: "views" */ '@/views/wel/dashboard')
  }]
},
  {
    path: '/message',
    component: Layout,
    redirect: '/message/index',
    children: [{
      path: 'index',
      name: '公告列表',
      meta: {
        i18n: 'index'
      },
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/message/index')
    },
    ]
  },
  {
    path: '/role',
    component: Layout,
    redirect: '/role/index',
    children: [{
      path: 'index',
      name: '查看角色',
      meta: {
        i18n: 'index',
      },
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/role/index')
    },
    ]
  },
  {
    path: '/role',
    component: Layout,
    redirect: '/role/deatils',
    children: [{
      path: 'deatils',
      name: '查看详细',
      meta: {
        i18n: 'deatils',
      },
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/role/deatils')
    },
    ]
  },
  {
    path: '/role',
    component: Layout,
    redirect: '/role/play',
    children: [{
      path: 'play',
      name: '换绑记录',
      meta: {
        i18n: 'play',
      },
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/role/play')
    },
    ]
  },

  {
  path: '/test',
  component: Layout,
  redirect: '/test/index',
  children: [{
    path: 'index',
    name: '测试页',
    meta: {
      i18n: 'test'
    },
    component: () =>
      import( /* webpackChunkName: "views" */ '@/views/util/test')
  }]
}, {
  path: '/info',
  component: Layout,
  redirect: '/info/index',
  children: [{
    path: 'index',
    name: '个人信息',
    meta: {
      i18n: 'info'
    },
    component: () =>
      import( /* webpackChunkName: "views" */ '@/views/user/info')
  }]
}
,{
    path: '/statistics',
    component: Layout,
    redirect: '/statistics/teamsub',
    children: [{
      path: 'teamsub',
      name: '查看下级',
      meta: {
        i18n: 'teamsub'
      },
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/statistics/teamsub')
    }]
  }
  ,{
    path: '/security',
    component: Layout,
    redirect: '/security/updatepass',
    children: [{
      path: 'updatepass',
      name: '修改登录密码',
      meta: {
        i18n: 'updatepass'
      },
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/security/updatepass')
    }]
  }
  ,{
    path: '/app',
    component: Layout,
    redirect: '/app/coupondetailed',
    children: [{
      path: 'coupondetailed',
      name: '优惠券明细',
      meta: {
        i18n: 'coupondetailed'
      },
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/app/coupondetailed')
    }]
  }
]
